package paopaoteacher;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;

public class P10 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("D:\\a\\1.txt",true);
        OutputStreamWriter osw=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        osw.write("我可以跟在你身后，像影子跟着光梦游！");
        osw.close();
        System.out.println("写出完毕！");

    }
}
